package com.jindy.module.outboundorder.service.impl;

import java.util.List;

import com.jindy.module.outboundorder.domain.OutboundOrderMachine;
import com.jindy.module.outboundorder.mapper.OutboundOrderMachineMapper;
import com.jindy.module.outboundorder.service.IOutboundOrderMachineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 出库单关联的机器Service业务层处理
 *
 * @author ruoyi
 * @date 2022-10-21
 */
@Service
public class OutboundOrderMachineServiceImpl implements IOutboundOrderMachineService
{
    @Autowired
    private OutboundOrderMachineMapper outboundOrderMachineMapper;

    /**
     * 查询出库单关联的机器
     *
     * @param id 出库单关联的机器主键
     * @return 出库单关联的机器
     */
    @Override
    public OutboundOrderMachine selectOutboundOrderMachineById(Long id)
    {
        return outboundOrderMachineMapper.selectOutboundOrderMachineById(id);
    }

    /**
     * 查询出库单关联的机器列表
     *
     * @param outboundOrderMachine 出库单关联的机器
     * @return 出库单关联的机器
     */
    @Override
    public List<OutboundOrderMachine> selectOutboundOrderMachineList(OutboundOrderMachine outboundOrderMachine)
    {
        return outboundOrderMachineMapper.selectOutboundOrderMachineList(outboundOrderMachine);
    }

    /**
     * 新增出库单关联的机器
     *
     * @param outboundOrderMachine 出库单关联的机器
     * @return 结果
     */
    @Override
    public int insertOutboundOrderMachine(OutboundOrderMachine outboundOrderMachine)
    {
        return outboundOrderMachineMapper.insertOutboundOrderMachine(outboundOrderMachine);
    }

    /**
     * 修改出库单关联的机器
     *
     * @param outboundOrderMachine 出库单关联的机器
     * @return 结果
     */
    @Override
    public int updateOutboundOrderMachine(OutboundOrderMachine outboundOrderMachine)
    {
        return outboundOrderMachineMapper.updateOutboundOrderMachine(outboundOrderMachine);
    }

    /**
     * 批量删除出库单关联的机器
     *
     * @param ids 需要删除的出库单关联的机器主键
     * @return 结果
     */
    @Override
    public int deleteOutboundOrderMachineByIds(Long[] ids)
    {
        return outboundOrderMachineMapper.deleteOutboundOrderMachineByIds(ids);
    }

    /**
     * 删除出库单关联的机器信息
     *
     * @param id 出库单关联的机器主键
     * @return 结果
     */
    @Override
    public int deleteOutboundOrderMachineById(Long id)
    {
        return outboundOrderMachineMapper.deleteOutboundOrderMachineById(id);
    }
}
